home *** CD-ROM | disk | FTP | other *** search
- *** ../dist/scan.c Thu Dec 16 07:29:34 1993
- --- scan.c Fri Dec 17 12:10:18 1993
- ***************
- *** 92,97 ****
- --- 92,100 ----
- #include <sys/stat.h>
- #include <sys/dir.h>
- #include <sys/file.h>
- + #ifdef _ABI_SOURCE
- + #include <utime.h>
- + #endif
- #include "sup.h"
-
- /*************************
- ***************
- *** 891,897 ****
- --- 894,904 ----
- char *scanfile;
- {
- char tname[STRINGLENGTH],fname[STRINGLENGTH];
- + #ifdef _ABI_SOURCE
- + struct utimbuf tbuf;
- + #else
- struct timeval tbuf[2];
- + #endif
- FILE *scanF; /* output file for scanned file list */
- int recordone ();
-
- ***************
- *** 908,916 ****
- --- 915,929 ----
- if (rename (tname,fname) < 0)
- goaway ("Can't change %s to %s",tname,fname);
- (void) unlink (tname);
- + #ifdef _ABI_SOURCE
- + tbuf.actime = time((time_t *)NULL);
- + tbuf.modtime = scantime;
- + (void) utime (fname,&tbuf);
- + #else
- tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0;
- tbuf[1].tv_sec = scantime; tbuf[1].tv_usec = 0;
- (void) utimes (fname,tbuf);
- + #endif
- }
-
- static
-